home *** CD-ROM | disk | FTP | other *** search
/ Stolen Data 3 / Stolen Data 3.adf / MAG-TEXT / CODE7b < prev    next >
Text File  |  1989-01-01  |  1KB  |  31 lines

  1.  1) The standard technique for speeding
  2. up  a  routine  is to remove all loops,
  3. this   is   best   achieved   here   by
  4. generating your sine-scroll routines as
  5. part of the setup routine.
  6.  2)   Generally  your  sine-waves  have
  7. constant seperation, that is the amount
  8. you  add  to  your sine-pointer between
  9. lines  doesn't change during the course
  10. of   the  scroller.   Therefore  it  is
  11. quicker   to  calculate  these  offsets
  12. before  you  run  the  routine,  in the
  13. setup.   If  you  combine this with the
  14. previous   idea,   and   use   Indirect
  15. addressing  with displacement, with the
  16. displacements   as   the  offsets  just
  17. mentioned  a  saving  is  made in speed
  18. terms.
  19.  3)  This  method only works if you use
  20. techniques  1  and  2,  it only makes a
  21. small  saving  but if you rearrange the
  22. order  of plotting the sine-scroller so
  23. that  all  the  segments using the same
  24. BLTAFWM  value are plotted sequentially
  25. then  you  only  need to set BLTAFWM at
  26. the start of each block.
  27.  4)  Of  course  it goes without saying
  28. always  use  Indirect  addressing modes
  29. for  every  operation.   In  my fastest
  30. sine  scroller,  I  used  every address
  31.